find the principal value of cos-1(-1